# @Author   :   hany
# @Time      :  2021/3/15
from basic.device.Android import Android
from airtest.core.api import *


class digitalPage(Android):

    digitalName = "com.cloudbae.lovenanning:id/digital_name"

    @classmethod
    def clickDigital(self):
        self.poco(text='数字证照').click()


    @classmethod
    def getDigitalName(self):
        if exists(Template(r"D:\desktop\git\YBBAirTestLab\1.png")):
            return True
        else:
            return False
